<template>
  <div class="head-fix">
    {{tilte}}
    <div class="head-right">
      <slot></slot>
    </div>
  </div>
</template>
<script>
export default {
   props:{
       tilte:{type:String,default:''}
   },
  data() {
    return {};
  }
};
</script>
<style scoped>
  .head-fix{
    position: fixed;
    width: 100%;
    border-bottom: 1px solid #ccc;
    height: 50px;;
    line-height: 50px;
    text-align: center;
  }
  .head-right{
    position: absolute;
    right: 0;
    top: 0;
  }

</style>
